package cn.zeng.dto;

import lombok.Data;

import java.util.HashMap;
import java.util.Map;

import static cn.zeng.dto.Color.BLACK;


/**
 * 高血压
 *
 * @author zyb
 */
@Data
public class HighBloodPressure {
    private String level="21风险";
    private String image= "u4736.png";

    private int age=12;
    /**
     * 有 /无
     */
    private String familyHighBloodPressure="mei";
    private String familyHighBloodPressureColor = BLACK.getName();

    /**
     * 收缩压
     */
    private Integer systolicBloodPressure=12;
    private String systolicBloodPressureColor = BLACK.getName();

    /**
     * 舒张压
     */
    private Integer diastolicBloodPressure=121;
    private String bloodPressureColor = BLACK.getName();
    private String bloodPressureReference="21/121";

    private Double bmi=12.;
    private String bmiColor = BLACK.getName();
    private String bmiReference="212";

    private String smoking="你好";
    private String smokingColor = BLACK.getName();

    private Integer salt=12;
    private String saltColor = BLACK.getName();
    private String saltReference = "22";

    private String activity="buhao";
    private String activityColor = BLACK.getName();
    /**
     * 精神压力
     */
    private String mental="hao";
    private String mentalColor = BLACK.getName();
    /**
     * 改善方式
     */
    private String improveWay="";

    public Map<String, Object> toMap() {
        Map<String, Object> map = new HashMap<>(22);
        map.put("HighBloodPressure_level", level);
        map.put("HighBloodPressure_image", image);
        map.put("HighBloodPressure_age", age);
        map.put("HighBloodPressure_familyHighBloodPressure", familyHighBloodPressure);
        map.put("HighBloodPressure_familyHighBloodPressureColor", familyHighBloodPressureColor);
        map.put("HighBloodPressure_systolicBloodPressure", systolicBloodPressure);
        map.put("HighBloodPressure_systolicBloodPressureColor", systolicBloodPressureColor);
        map.put("HighBloodPressure_diastolicBloodPressure", diastolicBloodPressure);
        map.put("HighBloodPressure_bloodPressureColor", bloodPressureColor);
        map.put("HighBloodPressure_bloodPressureReference", bloodPressureReference);
        map.put("HighBloodPressure_bmi", bmi);
        map.put("HighBloodPressure_bmiColor", bmiColor);
        map.put("HighBloodPressure_bmiReference", bmiReference);
        map.put("HighBloodPressure_smoking", smoking);
        map.put("HighBloodPressure_smokingColor", smokingColor);
        map.put("HighBloodPressure_salt", salt);
        map.put("HighBloodPressure_saltColor", saltColor);
        map.put("HighBloodPressure_saltReference", saltReference);
        map.put("HighBloodPressure_activity", activity);
        map.put("HighBloodPressure_activityColor", activityColor);
        map.put("HighBloodPressure_mental", mental);
        map.put("HighBloodPressure_mentalColor", mentalColor);
        map.put("HighBloodPressure_improveWay", improveWay);
        return map;
    }
}
